<template>
    <div>
        <van-cell @click="$router.push('/article/'+item.art_id)" v-for="(item,index) in newsList" :key="index" :title="item.title">
            <template #label>
                 <!-- <div v-if="item.cover.images.length==3">
                     <img v-for="(item2, index) in item.cover.images" :key="index" style="width:80px;height:80px" :src="item2" alt="">
                 </div> -->
                <span class="custom-title">{{item.aut_name}}====</span>
                <van-tag type="danger">{{item.like_count}}</van-tag>
                <span type="danger">{{item.pubdate|format}}</span>
            </template>
            <template #right-icon>
                <!-- <img v-if="item.cover.images.length==1" style="width:80px;height:80px" :src="item.cover.images[0]" alt=""> -->
            </template>
        </van-cell>
    </div>
</template>
           
<script>
export default {
  props: ['newsList']
}
</script>
<style scoped>
</style>